c# get all namespaces in assembly

86

c# get all namespaces in assembly -

namespace test
{
    public class Class1
    {
        public string[] AllNameSpace()
        {
            return Assembly.GetExecutingAssembly().GetTypes().Select(x => x.Namespace).ToArray();
        }
    }
}

Comments

Submit
0 Comments